package com.rrjjg.app.admin.data.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rrjjg.app.admin.data.service.IRoleService;
import com.rrjjg.app.admin.data.storage.entity.Role;
import com.rrjjg.app.admin.data.storage.mapper.RoleMapper;
import com.rrjjg.app.mybatis.util.PageUtil;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author vayne
 * @since 2023-04-06
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public Page<Role> queryPage(Role role, int page, int size) {
        QueryWrapper queryWrapper = PageUtil.queryWrapper(role, Role.class);
        return page(new Page<>(page, size), queryWrapper);
    }







}
